Go to
http://guymal.com/mycode/xor_js_encryption
to see the updated version.